using System.Collections;
using NodeCanvas.Variables;

namespace NodeCanvas.Actions
{
	public class ITweenScaleAmount : ITweenActions
	{
		public enum ScaleType
		{
			ScaleBy = 0,
			ScaleAdd = 1
		}

		public ScaleType rotateType;

		public BBVector amount;

		private Hashtable hash;

		protected override string info
		{
			get
			{
				return "Tween " + rotateType.ToString() + amount;
			}
		}

		protected override void OnExecute()
		{
			hash = iTween.Hash("amount", amount.value, "name", id.value, "delay", delay.value, "time", time.value, "easetype", easeType);
			if (rotateType == ScaleType.ScaleBy)
			{
				iTween.ScaleBy(base.agent.gameObject, hash);
			}
			else
			{
				iTween.ScaleAdd(base.agent.gameObject, hash);
			}
			base.OnExecute();
		}
	}
}
